package com.qfjg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qfjg.VO.ProjectsUidAndPhone;
import com.qfjg.entity.ProjectsInfo;

import java.util.ArrayList;
import java.util.List;

public interface ProjectsInfoService  extends IService<ProjectsInfo> {


    //插入数据
    public void insert(ProjectsInfo projectsInfo);


    //通过uid获取数据
    List<ProjectsInfo> getProjectsByUid(String uid);


    void delProjectById(String id);


    //通过Id修改信息
    boolean updateById(ProjectsInfo projectsInfo);


    //查询管理员数据
    List<ProjectsInfo> getProjectsByAdmin(List<String> roles);



    //通过电话号码获取对应项目信息
    List<ProjectsInfo> getProjectsByPhoneNumber(String phone);



    //通过用户uid和手机号获取用户项目列表
    List<ProjectsInfo> ProjectsUidAndPhone(ProjectsUidAndPhone uidAndPhone);

    //管理员条件查询
    List<ProjectsInfo>  getProjectsByAdminFilter(ProjectsInfo projectsInfo, ArrayList<String> rids);

}
